package com.yunti.springboot.vo.req;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author Administrator
 */
@NoArgsConstructor
@Data
public class UserLoginReq {
    @NotBlank(message = "请输入用户名")
    @Length(message = "名称不能超过个 {max} 字符", max = 11)
    private String userName;

    @NotBlank(message = "请输入密码")
    @Length(message = "密码不能超过个 {max} 字符", max = 18)
    private String password;
}
